package com.elephant.leil.generator.utils;

import org.springframework.util.ResourceUtils;

import java.io.FileNotFoundException;

public class PathUtils {

    /**
     * 获取模板路径
     * @return
     * @throws FileNotFoundException
     */
    public static String getTplPath() throws FileNotFoundException {
        return ResourceUtils.getURL(ResourceUtils.CLASSPATH_URL_PREFIX + "tpl/").getPath();
    }


    /**
     * 获取项目目录
     * @return
     */
    public static String getProjectDir() {
        return System.getProperty("user.dir") + "/";
    }

}
